<?php
$this->breadcrumbs=array(
	Yii::t('yii','Programs')=>array('index'),
	Yii::t('yii','Manage'),
);

$this->menu=array(
	array(Yii::t('yii','List Programs'), array('index')),
	array(Yii::t('yii','Create Programs'), array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('programs-grid', {
		url: $(this).attr('action'),
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1>Manage Programs</h1>

<?php $this->widget('textedit.components.TextEditor', array('id'=>'Programsmanage')); ?>


<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'programs-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'id',
		'title',
		'author',
		'code',
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
